import request from '@/utils/request'
// 根据id获取章节信息
export const getBySectionId = params => {
  return request({
    method: 'GET',
    url: '/boss/course/section/getBySectionId',
    params
  })
}
// 通过Id获取课时
export const getByLessonId = params => {
  return request({
    method: 'GET',
    url: '/boss/course/lesson/getById',
    params
  })
}
// 保存或者更新课程章节信息
export const saveOrUpdateSection = data => {
  return request({
    method: 'POST',
    url: '/boss/course/section/saveOrUpdateSection',
    data
  })
}
// 保存或者更新课程课时信息
export const saveOrUpdateLesson = data => {
  return request({
    method: 'POST',
    url: '/boss/course/lesson/saveOrUpdate',
    data
  })
}
